package top.jiangqiang.qianyi.common.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import top.jiangqiang.qianyi.common.constants.GlobalConstants;

@Configuration
@ConfigurationProperties(prefix = GlobalConstants.GLOBAL_PREFIX + ".info")
@Data
public class SystemInfoProperties {
    /**
     * 项目版本号
     */
    public String version;

    /**
     * 项目名
     */
    @Value("${" + GlobalConstants.GLOBAL_PREFIX + ".info.name:${spring.application.name:千异}}")
    public String name;
}
